package com.ztesoft.report.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ztesoft.report.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author y3tu
 * @since 2018-07-23
 */
@TableName("SYS_USER")
public class SysUser extends BaseEntity<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
	@TableId("USER_ID")
	private String userId;
    /**
     * 机构ID
     */
	@TableField("ORG_ID")
	private String orgId;
    /**
     * 用户名
     */
	@TableField("LOGIN_NAME")
	private String loginName;
    /**
     * 真实姓名
     */
	@TableField("NAME")
	private String name;
    /**
     * 密码
     */
	@TableField("PASSWORD")
	private String password;
    /**
     * 邮箱
     */
	@TableField("EMAIL")
	private String email;
    /**
     * 手机号
     */
	@TableField("MOBILE")
	private String mobile;
	@TableField("ISADMIN")
	private Integer isadmin;
    /**
     * 状态。  0：禁用   1：正常
     */
	@TableField("STATUS")
	private Integer status;
    /**
     * 描述
     */
	@TableField("REMARKS")
	private String remarks;
    /**
     * 创建人
     */
	@TableField("CREATE_BY")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("CREATE_DATE")
	private Date createDate;
    /**
     * 更新人
     */
	@TableField("UPDATE_BY")
	private String updateBy;
    /**
     * 更新时间
     */
	@TableField("UPDATE_DATE")
	private Date updateDate;
    /**
     * 删除标识。0：正常，1：删除
     */
	@TableField("DEL_FLAG")
	private Integer delFlag;
	@TableField("ERROR_TIMES")
	private Long errorTimes;


	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getIsadmin() {
		return isadmin;
	}

	public void setIsadmin(Integer isadmin) {
		this.isadmin = isadmin;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	public Long getErrorTimes() {
		return errorTimes;
	}

	public void setErrorTimes(Long errorTimes) {
		this.errorTimes = errorTimes;
	}

	@Override
	protected Serializable pkVal() {
		return this.userId;
	}

	@Override
	public String toString() {
		return "SysUser{" +
			", userId=" + userId +
			", orgId=" + orgId +
			", loginName=" + loginName +
			", name=" + name +
			", password=" + password +
			", email=" + email +
			", mobile=" + mobile +
			", isadmin=" + isadmin +
			", status=" + status +
			", remarks=" + remarks +
			", createBy=" + createBy +
			", createDate=" + createDate +
			", updateBy=" + updateBy +
			", updateDate=" + updateDate +
			", delFlag=" + delFlag +
			", errorTimes=" + errorTimes +
			"}";
	}
}
